package io.renren.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/")
public class HelloPageCtrler {

    @GetMapping("/hello")
    public ModelAndView toHelloPage() {
//        Map<String, String> map = new HashMap<>();
//        map.put("name", "中文姓名");
//        map.put("address", "看看中文地址是否正常");
//        modelMap.addAttribute("userInfo", map);
        ModelAndView mv = new ModelAndView("dmc/certificate/enterpriseCert/EnterpriseCertList");
        return mv;//freemarker模板文件路径（没有文件路径，默认src/main/resources/templates目录）
    }
}
